﻿using Microsoft.AspNetCore.Mvc.Filters;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace WebApi.Attributes
{
    public class TokenAttribute: ActionFilterAttribute
    {
        public override void OnActionExecuting(ActionExecutingContext filterContext)
        {
            string str = filterContext.RouteData.Values["id"].ToString();
            //filterContext.Result = new RedirectResult("/Account/Login");

            base.OnActionExecuting(filterContext);
        }
    }
}
